package com.rayc.mall.api.client;

import com.rayc.mall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: Ray-C
 * @CreateTime: 2025-03-25
 * @Description: user服务远程调用client
 * @Version: 1.0
 */
@FeignClient("mall-user")
public interface UserClient {
    @PutMapping("/users/deduct")
    Result<String> deductMoney(@RequestParam String password, @RequestParam Integer amount);
}
